package com.sczmgk.hotline_pzh.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

import com.sczmgk.hotline_pzh.hxim.ChatMsgBean;

/**
 * 聊天文本类型消息控件
 * 
 */
public class ChatMessageItemTextView extends TextView implements ChatMessageItem {

    public ChatMessageItemTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public int getViewType() {
        return ChatMsgBean.MSG_TYPE_TEXT;
    }

    @Override
    public boolean isShowBackground() {
        return true;
    }

    @Override
    public boolean isShowHeadIcon() {
        return true;
    }

    @Override
    public boolean isShowMessageStatus() {
        return true;
    }

    @Override
    public boolean isShowCenterInLayout() {
        return false;
    }

	@Override
	public void setViewStatus(ChatMsgBean msg) {
		
	}

	@Override
	public void setCallback(Callback callback) {
        setOnLongClickListener(callback.getLongClickListener());
	}
  }
